// GWindow.h: interface for the GWindow class.
//
//////////////////////////////////////////////////////////////////////

#ifndef __GWINDOW_H__
#define __GWINDOW_H__

#include "GForm.h"

#define  ID_MENU_FILE               50
#define  ID_MENU_EXIT               51
#define  ID_MENU_HELP               52


class GWindow : public GForm  
{
public:
	GWindow(GForm* parent = 0);
	virtual ~GWindow();

	GMenu                   getMainMenu()const { return m_hMainMenu; }
	GForm*                  getCenterForm()const { return m_pCenterForm; }
	void                    setCenterForm(GForm* pForm);

protected:
    virtual void            createEvent();  // add viarous resouces
    virtual void            closeEvent();
	virtual void            sizeEvent ( GSizeEvent& event );
    virtual void            itemEvent(int itemID, long param);

protected:
	GMenu                   m_hMainMenu;
	GForm                   *m_pCenterForm;
};

#endif 
